package main

import (
	"context"
	"gitee.com/leo-xin/novel_distribution_sdk_go/wending/h5"
	"gitee.com/leo-xin/novel_distribution_sdk_go/wending/h5/config"
)

func rechargeListExample() {

	ctx := context.Background()

	configuration := config.NewConfiguration()
	configuration.LogEnable = true
	apiClient := h5.Init(configuration)

	_, _, _ = apiClient.RechargeListApi().
		Get(ctx).
		ConsumerKey(ConsumerKey).SecretKey(SecretKey).
		SiteId(1015200).
		Execute()

	//s, _ := json.Marshal(resp)
	//fmt.Println(string(s))
	//
	//if httpRes != nil {
	//	resBytes, _ := io.ReadAll(httpRes.Body)
	//	fmt.Println(string(resBytes))
	//}
	//fmt.Println(err)

}
